<html>

	<head>
            <link rel="stylesheet" type="text/css" href="scripts/prueba.css"/>
	</head>

	<body>

		<div class="pcpal">
                <div class="menu">
                <?php
                    require_once("scripts/Menu.php");
                ?>
                </div>
                <div class="content1">
                    <img src="/AppResiduos2/images/4707384.jpg" alt="energia" style="width: 800px; height: 330px;" align="middle">
                </div>
                <div class="content2">

		<form action="/AppResiduos2/control/EmpresaControl.php" method="post">
	<?php if (isset($_POST['newOrg'])){
	?>
			<input type="hidden" name="operation" value="newOrg">
                        <table id="others">
                            <tr class="alt2">
                                <td>
                                    Organisation's name:
                                </td>
                                <td>
                                    <input type="text" name="org_name">
                                </td>
                            </tr>
                            <tr class="alt2">
                                <td>
                                    Organisation's type:
                                </td>
                                <td>
                                    <select size="1" name="org_type">
                                    <option selected value="productor">productor</option>
                                    <option value="transportador">transportador</option>
                                    <!--<option value=&qmargin-left: 75">-->
                                    </select>
                                </td>
                            </tr>
                        

	<?php
		}
		if (isset($_POST['modifyOrg'])){
		$name_org = $_POST['name_org'];
	?>
			<input type="hidden" name="operation" value="modifyOrg">
                        <table id="others">
                            <tr class="alt2">
                                <td>
                                    Organisation's name:
                                </td>
                                <td>
                                    <input type="text" name="org_name" value="<?php echo $name_org ?>">
                                </td>
                            </tr>
                            <tr class="alt2">
                                <td>
                                    New organisation's name:
                                </td>
                                <td>
                                    <input type="text" name="new_org_name">
                                </td>
                            </tr>
                            <tr class="alt2">
                                <td>
                                    Confirm new organisation's name:
                                </td>
                                <td>
                                    <input type="text" name="conf_new_org_name">
                                </td>
                            </tr>
			 

	<?php
		}
		if (isset($_POST['deleteOrg'])){
		$name_org = $_POST['name_org'];
	?>
			<input type="hidden" name="operation" value="deleteOrg">
                        <table id ="others">
                            <tr class="alt2">
                                <td>
                                    Organisation's name:
                                </td>
                                <td>
                                    <input type="text" name="org_name" value="<?php echo $name_org ?>">
                                </td>
                            </tr>
	<?php
		}
	?>
                            <tr class="alt2">
                                <td></td>
                                <td>
                                    <input type="submit" value="Accept">
                                </td>
                            </tr>
                        </table>

		</form>
		</div>
                </div>
	</body>

</html>
